Change in openvpn[release/2.6]: git-pre-commit-uncrustify: Make sure to not run on branches with clan...
A message that is not in the archive (sent off-list or not yet received): gerrit.1748258863000.Ifd36651a3713dd6f2e585f0771f349178a494360@...2715...
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1031?usp=email
to review the following change.
Change subject: git-pre-commit-uncrustify: Make sure to not run on branches with clang-format
......................................................................
git-pre-commit-uncrustify: Make sure to not run on branches with clang-format
If a .clang-format file is present, do not run this hook. This allows to keep this installed while working also on newer branches that do not use uncrustify anymore.
---
M dev-tools/git-pre-commit-uncrustify.sh
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/31/1031/1
dev-tools/git-pre-commit-uncrustify.sh +6 -0
@@ -58,6 +58,12 @@ exit 0 fi + +if [ -f .clang-format ]; then + echo "skipping uncrustify due to presence of .clang-format" + exit 0 +fi + # check whether the given file matches any of the set extensions matches_extension() { local filename="$(basename -- "$1")"
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1031?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: Ifd36651a3713dd6f2e585f0771f349178a494360
Gerrit-Change-Number: 1031
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-MessageType: newchange
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/1031?usp=email )
Change subject: git-pre-commit-uncrustify: Make sure to not run on branches with clang-format
......................................................................
Patch Set 1: Code-Review-1
(1 comment)
File dev-tools/git-pre-commit-uncrustify.sh:
http://gerrit.openvpn.net/c/openvpn/+/1031/comment/a69c76d3_77772c5a :
PS1, Line 66:
This is not exactly what I had in mind :-) - the commit hook is good, and I think we should run clang-format if we have a .clang-format, and uncrustify if we have an uncrustify.conf...
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1031?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: Ifd36651a3713dd6f2e585f0771f349178a494360
Gerrit-Change-Number: 1031
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Sat, 31 May 2025 20:58:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
flichtenheld has abandoned this change. ( http://gerrit.openvpn.net/c/openvpn/+/1031?usp=email )
Change subject: git-pre-commit-uncrustify: Make sure to not run on branches with clang-format
......................................................................
Abandoned
Not the wanted way forward
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1031?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: Ifd36651a3713dd6f2e585f0771f349178a494360
Gerrit-Change-Number: 1031
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: abandon